// 传参

const EventEmitter = require('events');

class MyEmitter extends EventEmitter { };

const myEmitter = new MyEmitter();

myEmitter.on('testFun', function (a, b) {
  console.log(a, b);
  console.log(this === myEmitter)
})

myEmitter.emit('testFun', 3, 5)